import random
hide_card = random.randint(1,100)

count = 0
if hide_card<100 and hide_card >0:
    while True:
        if count<5:
            guess = input("请输入你猜想的数字")
            guess_digit = int(guess)
            if guess_digit == hide_card:
                print("恭喜你，猜中了")
                break
            elif guess_digit>hide_card:
                print("你猜的数字太大了")
            else:
                print("你猜的数字太小了")
            count +=1
        else:
            print("猜这么多都猜不对")
            print("正确答案:%s"% (hide_card))
            break
else:
    print("请输入在0-99之间的数字")
